//- Copyright (c) 2016 Lucky Byte, Inc.

.ui.modal.large.step1_2
  .header 消费代付商户－关键信息

  .content
    form.ui.form#form1_2(autocomplete="off" data-acct-info="true")
      .fields
        .field.sixteen.wide.required
          label 消费手续费:
          .ui.dropdown.input.selection
            i.icon.yen
            input(type="hidden" name="t20_fee")
            i.icon.dropdown
            .default.text 
            .menu
              for fee in fees
                .item(data-value="#{fee.uuid}")
                  .right.floated(style="color:#888;") #{fee.notes}
                  = fee.name

      h4.ui.dividing.header 商户账户

      .fields
        .field.three.wide.either
          label 开户人姓名:
          .ui.input.left.icon
            i.icon.user
            input(type="text" name="acct_name")
        .field.five.wide.required
          label 收款账号:
          .ui.input.left.icon
            i.icon.payment
            input(type="text" name="acct_no" placeholder="必填")
        .field.three.wide.either
          label 开户人证件类型:
          select.ui.dropdown.input#acct_cred_type(name="acct_cred_type")
            - for (var k in constant.cred_types)
              option(value="#{k}") #{k}. #{constant.cred_types[k]}
        .field.five.wide.either
          label 开户人证件号码:
          .ui.input
            input(type="text" name="acct_cred_no" placeholder="姓名与证件号码必填其一")

      .fields
        .field.three.wide
          label 绑定手机号:
          .ui.input.left.icon
            i.icon.tablet
            input(type="text" name="acct_mobile")
        .field.five.wide
          label 开户行行号:
          .ui.input
            input(type="text" name="acct_bank_code")
        .field.eight.wide
          label 开户行名称:
          .ui.input
            input(type="text" name="acct_bank_name")

      h4.ui.dividing.header 代付配置

      .fields
        .field.three.wide.required
          label 代付渠道:
          select.ui.dropdown.selection.input.pay_chnl(name="pay_chnl")
            option(value="") 必填
            - for (var k in constant.pay_chnls)
              option(value="#{k}") #{k}. #{constant.pay_chnls[k]}

        .field.thirteen.wide.required
          label 代付渠道商户:
          .ui.dropdown.selection.labeled.search.pay_merid
            input(type="hidden" name="pay_merid")
            i.icon.dropdown
            .default.text 必填
            .menu

  .actions
    .ui.labeled.icon.button.blue.prev(data-prev="step1_1") 后 退
      i.icon.arrow.left
    .ui.right.labeled.icon.button.green.next(data-next="step1_3") 继 续
      i.icon.arrow.right
    .ui.cancel.labeled.icon.button.left.floated.red 取 消
      i.icon.arrow.remove
